# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=md2gemini
pkgver=1.9.0
pkgrel=0
pkgdesc="converter from Markdown to the Gemini text format"
arch="noarch"
url="https://github.com/makeworld-the-better-one/md2gemini"
license="LGPL-3.0-or-later"
depends="py3-cjkwrap py3-wcwidth py3-mistune"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/makeworld-the-better-one/md2gemini/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install  --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="01c65c74f3a21fbc015865fc04c00d0baba6ee7a3a844b6a718abcc71d3acb9bb423af942047334482385de2317b8543b04543dd3cf438fbe4a43c3516263095  md2gemini-1.9.0.tar.gz"
